Type Checking for a Multiset Rewriting Language
نویسندگان
چکیده
We enhance Gamma, a multiset rewriting language, with a notion of structured multiset. A structured multiset is a set of addresses satisfying speci c relations which can be used in the rewriting rules of the program. A type is de ned by a context-free graph grammar and a structured multiset belongs to a type T if its underlying set of addresses satis es the invariant expressed by the grammar de ning T . We de ne a type checking algorithm which allows us to prove mechanically that a program maintains its data structure invariant.
منابع مشابه
A Specification Language for Crypto-Protocols based on Multiset Rewriting, Dependent Types and Subsorting
MSR is an unambiguous, flexible, powerful and relatively simple specification framework for crypto-protocols. It uses multiset rewriting rules over first-order atomic formulas to express protocol actions and relies on a form of existential quantification to symbolically model the generation of nonces and other fresh data. It supports an array of useful static checks that include type-checking a...
متن کاملStructured Gamma
The Gamma language is based on the chemical reaction metaphor which has a number of bene ts with respect to parallelism and program derivation. But the original de nition of Gamma does not provide any facility for data structuring or for specifying particular control strategies. We address this issue by introducing a notion of structured multiset which is a set of addresses satisfying speci c r...
متن کاملA Logic Language Based on GAMMA-Like Multiset Rewriting
This paper describes Gammall og, a logic language based on multiset rewriting. The language combines the ability of describing parallel programs made of multiset transformation rules as in GAMMA with the execution model of logic programming in a strongly typed framework as in GG odel. We describe the design choices, the syntax and the semantics of the language, and a prototype implementation.
متن کاملA Distributed Implementation of Structured Gamma
This paper presents a distributed implementation of the Structured Gamma programming language, a language based on the Gamma multiset rewriting paradigm. Structured Gamma offers, in addition to the advantages introduced by Gamma, implicit concurrent behavior and a type system where not only types themselves are defined but also the automatic verification of user defined types at compilation tim...
متن کاملThe Logical Meeting Point of Multiset Rewriting and Process Algebra: Progress Report
We present a revisited semantics for multiset rewriting founded on the left sequent rules of linear logic in its LV presentation. The resulting interpretation is extended with a majority of linear connectives into the language of ωmultisets. It drops the distinction between multiset elements and rewrite rules, and considerably enriches the expressive power of standard multiset rewriting with em...
متن کامل